package com.person.ntv.service.sys;

import java.util.List;
import java.util.Map;
import com.person.exception.ServiceException;
import com.person.ntv.entity.sys.SysCode;

public interface CommonService{
	//验证字段唯一 接口 
   public int validateOne(String tableName,String colName,String colValue,String id)throws ServiceException;
   //通过字典集 编号 获取 值集合
   public List<SysCode> getCodeList(String csEnName,boolean defaultOpt)throws ServiceException;
   //通过 字典 值 获取字典值名称 
   public String getCodeName(String csEnName,String codeValue)throws ServiceException;
   
   public String getCodeName(List<SysCode>codeList,String codeValue)throws ServiceException;
   
   public List<Map<String,Object>> getCodeSetList()throws ServiceException;
   
}
